/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.soccer.cms.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.soccer.cms.common.persistence.DataEntity;

/**
 * 字典信息Entity
 * @author zouqh
 * @version 2015-05-25
 */
public class Dictinfo extends DataEntity<Dictinfo> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	private String name;		// 名称
	private Dict dict;		// 字典编号
	private String dictinfotype;		// 类型
	
	public Dictinfo() {
		super();
	}

	public Dictinfo(String id){
		super(id);
	}

	@Length(min=0, max=50, message="编码长度必须介于 0 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Dict getDict() {
		return dict;
	}

	public void setDict(Dict dict) {
		this.dict = dict;
	}
	
	@Length(min=0, max=50, message="类型长度必须介于 0 和 50 之间")
	public String getDictinfotype() {
		return dictinfotype;
	}

	public void setDictinfotype(String dictinfotype) {
		this.dictinfotype = dictinfotype;
	}
	
}